package com.wpp.Test;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {


    /**
    *用于测试:
    *
    */
    @Test
    public void test(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext1.xml");
        BeanProcessorTest beantest = (BeanProcessorTest) context.getBean("beantest");
        System.out.println(beantest.getName());

    }

    /**
    *用于测试:
    *
    */
    @Test
    public void test2(){

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext1.xml");
        testIterface testInter = (testIterface) context.getBean("testInter");
        testInter.show();
    }
}
